package com.igeek.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 整合mybatis:
 * 1.引入场景启动器
 * 2.在application.yml中 配置mybatis
 * 3.
 *   1.在主启动类上添加注解@MapperScan("com.igeek.boot.mapper") mapper接口生成代理对象
 *   2.在mapper接口类上添加注解@Mapper
 */
@MapperScan("com.igeek.boot.mapper")
@SpringBootApplication
public class Boot4DruidApplication {

    public static void main(String[] args) {
        SpringApplication.run(Boot4DruidApplication.class, args);
    }

}
